<!DOCTYPE html>
<html lang="zh">
    <head>
        <meta charset="UTF-8">
        <title>首页</title>
    </head>
    <body>
        <h1>首页</h1>
        <div name="nav">
            <ul>
                <li>首页</li>
                <li>活动</li>
                <li>关于公司</li>
                <li>后台管理</li>
                {% if request.session.is_login %}
                    <a href="" style="text-decoration: none"><li>我的</li></a>
                    <li>欢迎，{{ request.session.username }}</li>
                    <a href="/logout" style="text-decoration: none">logout</a>
                {% else %}
                    <a href="/login" style="text-decoration: none">login</a>
                    <a href="/register" style="text-decoration: none">register</a>
                {% endif %}
            </ul>
        </div>
    </body>
</html>